/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package customer_cmds;

import appClientHandler.LoginResult;
import commands.AccountCommand;
import customer_jdom.AccountJDOM;
import dao.IdaoLocal;
import entities.Account;

/**
 *
 * eCOM - Adopte un Presta - Mars-Avril 2013
 * @author Kheira, Jef, William, Tuan-Long
 */
public class AccountConsoleCommand extends AccountCommand {
        private final IdaoLocal daoJpa;
        private AccountJDOM accountJDOM;

        public AccountConsoleCommand(IdaoLocal daoJpa){
            super();
            this.daoJpa = daoJpa;
            this.accountJDOM = new AccountJDOM();
        }

        @Override
        public void defaultAction() {
            super.defaultAction();
            /*
            LoginResult authResult = this.daoJpa.getLoginResult();
            if(authResult == null || !authResult.isValid()){
                this.getOut().println("Please log in");
            } 
            else
            {
                print(this.daoJpa.getLoginResult().getIdentity().getValue());
            }
            * */
        }


        private void print(Account account) {
           //accountJDOM.print(this.getOut(), account, this.daoJpa.getOutput());
        }
}
